package com.zhu.service.impl;

import com.zhu.dao.AccountDao;
import com.zhu.domain.Account;
import com.zhu.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("accountService1")
public class AccountServiceImpl implements AccountService {
   @Autowired
    private AccountDao accountDao;

   public List<Account> findAll(){
       System.out.println("业务层：查询所有账户，，，");
       return accountDao.findAll();
   }
   public void saveAccount(Account account){
       System.out.println("业务层，保存账户，，，");
       accountDao.saveAccount(account);
   }
}
